package com.qf.commerce.service;

import com.github.pagehelper.PageInfo;
import com.qf.commerce.entity.BalanceTransactions;

import java.math.BigDecimal;

/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/12 19:42
*/

public interface BalanceTransactionsService{

    int updateByPrimaryKeySelective(BalanceTransactions record);

    int updateByPrimaryKey(BalanceTransactions record);

    BigDecimal add(Integer userId, BigDecimal money,String comment);
    BigDecimal subtract(Integer userId, BigDecimal money,String comment);

    PageInfo<BalanceTransactions> listById(Integer userId,Integer page, Integer size);
}
